package com.jiyun.controller;

import com.baomidou.mybatisplus.extension.api.R;
import common.models.dtos.RewardDto;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.jiyun.service.IThRewardService;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  奖励表
 * </p>
 *
 * @author usian
 * @since 2022-10-25
 */
@RestController
@RequestMapping("/reward")
@Api(tags = "接口")
@CrossOrigin
public class ThRewardController{

    @Autowired
    private IThRewardService thRewardService;

    /**
     * 对成单量/佣金金额最高的进行奖励
     */
    @PostMapping("/Byreward")
    public String Byreward(@RequestBody RewardDto dto){
       return thRewardService.findorderId(dto);
    }
}
